//
//  xBooksAppDelegate_iPhone.m
//  xBooks
//
//  Created by wicresoft on 6/23/11.
//  Copyright 2011 wicresoft. All rights reserved.
//

#import "xBooksAppDelegate_iPhone.h"
#import "DemoViewController.h"

@implementation xBooksAppDelegate_iPhone

-(id)init {
    if ((self=[super init])) {
    }
    return self;
}

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    // Override point for customization after application launch.
//    UIViewController *rootViewController = [[[ExamplesViewController alloc] init] autorelease];
//    viewController = [[UINavigationController alloc] initWithRootViewController:rootViewController];
//    
//	[self.window addSubview:viewController.view];
    
    demoController = [[DemoViewController alloc] init];
    [self.window addSubview:demoController.view];
    [self.window makeKeyAndVisible];
    
    return YES;
}


- (void)dealloc
{
    [viewController release];
    [demoController release];
	[super dealloc];
}


@end
